package com.flyco.pageindicator.anim.unselect;

import com.flyco.pageindicator.anim.base.IndicatorBaseAnimator;
import ohos.agp.animation.Animator;
import ohos.agp.animation.AnimatorGroup;
import ohos.agp.components.Component;

/**
 * 选中变为没选中时不执行任何动画类
 */
public class NoAnimExist extends IndicatorBaseAnimator {

    @Override
    public Animator setAnimation(Component component) {
        AnimatorGroup animatorGroup = new AnimatorGroup();
        animatorGroup.setDuration(200);
        animatorGroup.runParallel(component.createAnimatorProperty().alpha(1.0f));
        return animatorGroup;
    }

}
